package com.student.liu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.student.liu.entity.GoodsType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 商品类型 Mapper
 */
@Mapper
public interface IGoodsTypeMapper extends BaseMapper<GoodsType> {
    @Select("SELECT id from goods_type WHERE `name`=${name}")
    Integer SelectTypeId(@Param("name") String name);
}
